import { request } from '../../../request';

// 获取顶部的table数据
export function getOneCodeAscendTopTable(params: any) {
  return request({
    url: '/mes/one-code-ascend/lot-for-traced-id',
    params
  });
}

// 获取批次信息
export function getLotInfoSubitem(lotId: number) {
  return request({
    url: '/mes/one-code-ascend/lot-info-subitem',
    params: { lotId }
  });
}

// 获取PNL清单
export function getComponentInfoSubitem(params: any) {
  return request({
    url: '/mes/one-code-ascend/component-info-subitem',
    params
  });
}

// 获取PNL历史
export function getPNLHistory(params: any) {
  return request({
    url: '/mes/one-code-ascend/component-info-subitem/child-one',
    params
  });
}

// 获取set/pcs列表
export function getSetPCSList(params: any) {
  return request({
    url: '/mes/one-code-ascend/component-info-subitem/child-two',
    params
  });
}

// 获取不良列表
export function getBadnessList(params: any) {
  return request({
    url: '/mes/one-code-ascend/scrap-record-subitem',
    params
  });
}
